﻿using System;
using System.ComponentModel.DataAnnotations;
using XStudio.XCRF.Data.Business.Archieve;
using XStudio.XCRF.Data.Enums;

namespace XStudio.XCRF.Data.Entities
{
    /// <summary>
    /// 化疗信息
    /// </summary>
    /// <typeparam name="T">具体类型</typeparam>
    public abstract partial class Chemo<T> : BaseEntity<T> where T :BaseEntity<T>
    {
        #region 属性
        /// <summary>
        /// 方案
        /// </summary>
        [ArchieveField]
        [EnumDataType(typeof(ChemoSchemeTypes))]
        public byte? Scheme { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        [ArchieveField]
        [DataType(DataType.Date)]
        [Column(TypeName = "date")]
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [ArchieveField]
        [DataType(DataType.Date)]
        [Column(TypeName = "date")]
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 周期
        /// </summary>
        [ArchieveField]
        public int? Period { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [ArchieveField]
        [Column(TypeName = "varchar")]
        [MaxLength(100)]
        public string Remark { get; set; }
        #endregion 属性
    }
}
